package com.softer.ztb.common.entity;

import lombok.Data;

import java.util.List;


/**
 * @author Gong Zhiyang
 * @date 2018/8/9
 */
@Data
public class ManagerPageResult {
    private Integer count;
    private JsonResult json;

    /**
     * 设置返回参数
     *
     * @param mpr  ManagerPageResult
     * @param jr   JsonResult
     * @param num  数量
     * @param list 集合列表
     */
    public ManagerPageResult setResult(ManagerPageResult mpr, JsonResult jr, int num, List list) {
        mpr.setCount(num);
        jr.setDs(list);
        mpr.setJson(jr);
        return mpr;
    }
}
